package com.hdax.shiro;

import org.apache.shiro.crypto.hash.Md5Hash;

//1. 单项加密
//2. 每次加密结果都相同
public class MD5Test {
    public static void main(String[] args) {
        //e10adc3949ba59abbe56e057f20f883e
        String str = "123456";
        //Md5Hash md5Hash = new Md5Hash(str);
        //4280d89a5a03f812751f504cc10ee8a5
        //d93ae65992caf6a8751e334d0a716ad8
        //48474f975022f960bc2afbe49be581e8
        Md5Hash md5Hash = new Md5Hash(str,"qwerty",1000);
        System.out.println(md5Hash.toString());
    }
}
